<?php
/**
 * Created by PhpStorm.
 * User: huanglintian
 * Date: 2019/3/26
 * Time: 10:28
 */
$data = require __DIR__ . '/data.php';
include __DIR__ . '/include.php';

$rote = isset($_GET['s']) ? trim($_GET['s']) : '';
$type = isset($_GET['p']) ? trim($_GET['p']) : '';

if (preg_match('/raorao/', $rote, $matches))  {
    include __DIR__ . '/../show.php';
} else if (preg_match('/tiao/', $rote, $matches)) {
    include __DIR__ . '/../share.php';
} else if (preg_match('/;(\d*?);/', $rote, $matches)) {
    include __DIR__ . '/../result.php';
} else {
    include __DIR__ . '/cover.php';
}
